<style>
    #dictItem-view {
        padding: 20px 25px 25px 0;
    }

    #dictItem-view .layui-treeSelect .ztree li a, .ztree li span {
        margin: 0 0 2px 3px !important;
    }
</style>
<div class="layui-fluid" id="dictItem-view">
    <form class="layui-form" action="" lay-filter="dictItem-view-form">
        <div class="layui-form-item zzdz-hide ">
            <label class="layui-form-label zzdz-form-item-require">item主键：</label>
            <div class="layui-input-block">
                <input type="text" name="id" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item-require">所属字典：</label>
            <div class="layui-input-block">
                <input type="text" name="type" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item-require">Item名称：</label>
            <div class="layui-input-block">
                <input type="text" name="lable" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item-require">Item值：</label>
            <div class="layui-input-block">
                <input type="text" name="value" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item">描述：</label>
            <div class="layui-input-block">
                <input type="text" name="description" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item">备注：</label>
            <div class="layui-input-block">
                <input type="text" name="remarks" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item">排序：</label>
            <div class="layui-input-block">
                <input type="text" name="sort" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item">创建时间：</label>
            <div class="layui-input-block">
                <input type="text" name="createTime" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label zzdz-form-item">更新时间：</label>
            <div class="layui-input-block">
                <input type="text" name="updateTime" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
    </form>
</div>

<script data-th-inline="javascript">
    layui.use(['zzdz', 'form'], function () {
        var $ = layui.$,
            form = layui.form,
            dictItem = [[${dictItem}]];
        form.render();

        initDictItemValue();

        function initDictItemValue() {
            form.val("dictItem-view-form", {
                "id": dictItem.id,
                "dictId": dictItem.dictId,
                "value": dictItem.value,
                "lable": dictItem.lable,
                "type": dictItem.type,
                "description": dictItem.description,
                "remarks": dictItem.remarks,
                "sort": dictItem.sort,
                "createTime": dictItem.createTime,
                "updateTime": dictItem.updateTime,
            });
        }
    });
</script>